import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

let homepage = {
  path: '/',
  redirect: '/home/index'
}
import home from '@/module/home/router'
// npm run module Identifier:importRouter

const routes = [
  homepage,
  ...home,
  // npm run module Identifier:routerInject
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
